package day170402;

public class piao implements Runnable{
    static int a =100;
    Object o = new Object();
    @Override

    public void run() {

            while(true){
                synchronized ("") {
                    if(a>0){
                    try {
                        Thread.sleep(10);
                    } catch (InterruptedException e) {
                        e.printStackTrace();
                    }
                        System.out.println(Thread.currentThread().getName() + "  " + a);
                        a--;
                    }else{
                      break;
                    }
                }
        }

    }
}
